package com.mall.service;

import com.mall.entity.User;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public interface UserService {
    Map<String, Object> login(String phone, String password);

    User register(User user);

    User uploadAvatar(String url, String userId);

    //修改个人信息
    User modifyUserInfo(User user);

    //更据用户Id查询用户；
    User queryUserByUserId(String userId);


    User queryUserByPhone(String phone);

    boolean resetPass(User user);

    User modifyPassword(String phone, String password);

    int uploadDefaultAvatar(String url);
}
